package com.formelo.repository;

import com.formelo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.ArrayList;
import java.util.List;
import java.util.Optional;

public interface UserJPARepository extends JpaRepository<User,Long> {
    Optional<User> findById(Long id);

    default List<User> findByCountry(String country) {
        return new ArrayList<>();
    }
}
